<!DOCTYPE html>
<html>
<head>
<title></title>
#parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="grid-btn">
			#if($shiro.hasPermission("material:save"))
			<a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			#end
			#if($shiro.hasPermission("material:update"))
			<a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			#end
			#if($shiro.hasPermission("material:delete"))
			<a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			#end
		</div>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>
    
    <div v-show="!showList" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
											<div class="form-group">
			   	<div class="col-sm-2 control-label">1---theme 2---videofx 3---captionstyle 4---animatedsticker 5---videotransition 6---font 7---music 8---capture scene 9---particle 10---face sticker 11—faceu zip 12—faceu bundle 13—superzoom 14—arscene 15—compound caption</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="material.materialType" placeholder="1---theme 2---videofx 3---captionstyle 4---animatedsticker 5---videotransition 6---font 7---music 8---capture scene 9---particle 10---face sticker 11—faceu zip 12—faceu bundle 13—superzoom 14—arscene 15—compound caption"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label"></div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="material.category" placeholder=""/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label"></div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="material.displayName" placeholder=""/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label"></div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="material.displayNameZhCn" placeholder=""/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label"></div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="material.commodityNumber" placeholder=""/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label"></div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="material.description" placeholder=""/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label"></div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="material.tags" placeholder=""/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label"></div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="material.tagsZhCn" placeholder=""/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label"></div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="material.version" placeholder=""/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label"></div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="material.minAppVersion" placeholder=""/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label"></div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="material.packageFileName" placeholder=""/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label"></div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="material.packageUrl" placeholder=""/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label"></div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="material.packageSize" placeholder=""/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label"></div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="material.cover" placeholder=""/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label"></div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="material.coverUrl" placeholder=""/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label"></div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="material.coverUrl2" placeholder=""/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">特定素材(例如影集、mimo等)相关视频URL</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="material.videoUrl" placeholder="特定素材(例如影集、mimo等)相关视频URL"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">特定素材(例如影集、mimo等)相关元数据信息URL</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="material.infoUrl" placeholder="特定素材(例如影集、mimo等)相关元数据信息URL"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">组成此素材(例如mimo等)的子素材的UUID拼接字符串(逗号分隔)</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="material.childrenIds" placeholder="组成此素材(例如mimo等)的子素材的UUID拼接字符串(逗号分隔)"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label"></div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="material.idx" placeholder=""/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label"></div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="material.lastUpdateTime" placeholder=""/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">Bitwise OR of supported aspect ratio: 1 --- 16v9 2 --- 1v1 4 — 9v16 8 — 4v3 16 — 3v4 32— 18v9 64— 9v18</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="material.supportedAspectRatio" placeholder="Bitwise OR of supported aspect ratio: 1 --- 16v9 2 --- 1v1 4 — 9v16 8 — 4v3 16 — 3v4 32— 18v9 64— 9v18"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label"></div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="material.errorFlag" placeholder=""/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label"></div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="material.public" placeholder=""/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">0 — 非通用 1 — 通用</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="material.ratioFlag" placeholder="0 — 非通用 1 — 通用"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">0 — 老的贴纸模板，为快VR需要 1 -- 新的贴纸模板，bilibili需要</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="material.customStickerTemplateFlag" placeholder="0 — 老的贴纸模板，为快VR需要 1 -- 新的贴纸模板，bilibili需要"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">属于某些用户的私有素材，逗号分隔</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="material.userId" placeholder="属于某些用户的私有素材，逗号分隔"/>
			    </div>
			</div>
							<div class="form-group">
				<div class="col-sm-2 control-label"></div> 
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>
</div>

<script src="${rc.contextPath}/js/generator/material.js?_${date.systemTime}"></script>
</body>
</html>